import http from '@/utils/request'

// 更新用户的基本信息
export const updateUserinfoApi = (data) => {
  return http({
    url: '/my/userinfo',
    method: 'put',
    data
  })
}

// 重置密码
export const updatePwdApi = (data) => {
  return http({
    url: '/my/updatepwd',
    method: 'patch',
    data
  })
}

// 更换头像
export const updateAvatarApi = (data) => {
  return http({
    url: '/my/update/avatar',
    method: 'patch',
    data
  })
}